/** \file utils.h
 * \brief Define some usefull macros, functions or constants.
 */

#ifndef UTILS_H
#define UTILS_H

#define ENCLOSE(a,x,b) ( (a<=x)&&(b>=x) )

#define CONTAINS(a,x,y,b) ( ENCLOSE(a,x,b)&&ENCLOSE(a,y,b) )

#define MAX(a,b) ((a)>(b)?(a):(b))

#endif/*UTILS_H*/
